+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- width="16"
- height="16"
- id="svg3863"
- version="1.1"
- inkscape:version="0.48.4 r9939"
- sodipodi:docname="menu-arrow.svg">
- <defs
- id="defs3865" />
- <sodipodi:namedview
- id="base"
- pagecolor="#ffffff"
- bordercolor="#666666"
- borderopacity="1.0"
- inkscape:pageopacity="0.0"
- inkscape:pageshadow="2"
- inkscape:zoom="15.836083"
- inkscape:cx="-3.1641676"
- inkscape:cy="11.823817"
- inkscape:current-layer="layer1"
- showgrid="true"
- inkscape:grid-bbox="true"
- inkscape:document-units="px"
- showguides="true"
- inkscape:guide-bbox="true"
- inkscape:window-width="1366"
- inkscape:window-height="702"
- inkscape:window-x="0"
- inkscape:window-y="27"
- inkscape:window-maximized="1"
- inkscape:snap-bbox="true">
- <sodipodi:guide
- orientation="1,0"
- position="15.996443,16.922964"
- id="guide3873" />
- <sodipodi:guide
- orientation="0,1"
- position="28.041217,3.1256134"
- id="guide3875" />
- <sodipodi:guide
- orientation="0,1"
- position="-0.80372916,24.469088"
- id="guide3877" />
- <sodipodi:guide
- orientation="1,0"
- position="3.0363102,34.649657"
- id="guide3879" />
- <sodipodi:guide
- orientation="1,0"
- position="29.023553,28.577037"
- id="guide3881" />
- <inkscape:grid
- type="xygrid"
- id="grid2988" />
- </sodipodi:namedview>
- <metadata
- id="metadata3868">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title></dc:title>
- </cc:Work>
- </rdf:RDF>
- </metadata>
- <g
- id="layer1"
- inkscape:label="Layer 1"
- inkscape:groupmode="layer"
- transform="translate(0,-16)">
- <path
- style="fill:#ffffff;fill-opacity:1;stroke:none"
- d="m 4,23 8,0 -4,5 z"
- id="path3883"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="cccc" />
- </g>
-</svg>
* @side Side to which the arrow points.
*/
function arrowIcon(side) {
- let rotation;
+ let iconName;
switch (side) {
case St.Side.TOP:
- rotation = 180;
+ iconName = 'pan-up-symbolic';
break;
case St.Side.RIGHT:
- rotation = - 90;
+ iconName = 'pan-end-symbolic';
break;
case St.Side.BOTTOM:
- rotation = 0;
+ iconName = 'pan-down-symbolic';
break;
case St.Side.LEFT:
- rotation = 90;
+ iconName = 'pan-start-symbolic';
break;
}
- let gicon = new Gio.FileIcon({ file: Gio.File.new_for_path(global.datadir +
- '/theme/menu-arrow-symbolic.svg') });
-
let arrow = new St.Icon({ style_class: 'popup-menu-arrow',
- gicon: gicon,
+ icon_name: 'pan-end-symbolic',
accessible_role: Atk.Role.ARROW,
y_expand: true,
y_align: Clutter.ActorAlign.CENTER });
- arrow.rotation_angle_z = rotation;
-
return arrow;
}